import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import routes from './router'
import axiosBase from 'axios'

Vue.use(ElementUI)
Vue.use(VueRouter)

let axios = axiosBase.create({
  baseURL: 'http://127.0.0.1:3000',
  timeout: 3000
});
Vue.prototype.$axios = axios;

const router = new VueRouter({
  routes
})
new Vue({
  el: '#app',
  router,
  render: h => h(App)
});

